import {
  mockIp,
  mockReqId
} from '../utils/mock';

export function genCartGroupData() {
  const resp = {
    data: {
      isNotEmpty: true,
      storeGoods: [{
        storeId: '1000',
        storeName: '守艺织梦',
        storeStatus: 1,
        totalDiscountSalePrice: '9990',
        promotionGoodsList: [{
          title: '满减满折回归',
          promotionCode: 'MERCHANT',
          promotionSubCode: 'MYJ',
          promotionId: '159174555838121985',
          tagText: ['满100元减99.9元'],
          promotionStatus: 3,
          tag: '满减',
          description: '满100元减99.9元,已减99.9元',
          doorSillRemain: null,
          isNeedAddOnShop: 0,
          goodsPromotionList: [{
              uid: '88888888205468',
              saasId: '88888888',
              storeId: '1000',
              spuId: '12',
              skuId: '135691622',
              isSelected: 1,
              thumb: 'https://gitee.com/super_yangfeng/yimg/raw/master/三灶编织文创笔筒.png',
              title: '三灶编织文创笔筒',
              primaryImage: 'https://gitee.com/super_yangfeng/yimg/raw/master/三灶编织文创笔筒.png',
              quantity: 1,
              stockStatus: true,
              stockQuantity: 3,
              price: '9800',
              originPrice: '16900',
              tagPrice: null,
              titlePrefixTags: [{
                text: '新品'
              }, {
                text: '火爆'
              }],
              roomId: null,
              specInfo: [{
                  specTitle: '颜色',
                  specValue: '经典白',
                },
                {
                  specTitle: '尺寸',
                  specValue: '大',
                },
              ],
              joinCartTime: '2020-06-29T07:55:40.000+0000',
              available: 1,
              putOnSale: 1,
              etitle: null,
            },

            {
              uid: '88888888205468',
              saasId: '88888888',
              storeId: '1000',
              spuId: '18',
              skuId: '135681631',
              isSelected: 1,
              thumb: 'https://gitee.com/super_yangfeng/yimg/raw/master/三灶编织联名帆布袋.png',
              title: '三灶编织联名帆布袋-超实用',
              primaryImage: 'https://gitee.com/super_yangfeng/yimg/raw/master/三灶编织联名帆布袋.png',
              quantity: 1,
              stockStatus: true,
              stockQuantity: 177,
              price: '29800',
              originPrice: '40000',
              tagPrice: null,
              titlePrefixTags: null,
              roomId: null,
              specInfo: [{
                  specTitle: '颜色',
                  specValue: '白色',
                },
                {
                  specTitle: '尺码',
                  specValue: 'S',
                },
              ],
              joinCartTime: '2020-06-29T07:55:27.000+0000',
              available: 1,
              putOnSale: 1,
              etitle: null,
            },
            {
              uid: '88888888205468',
              saasId: '88888888',
              storeId: '1000',
              spuId: '13',
              skuId: '135698362',
              isSelected: 1,
              thumb: 'https://gitee.com/super_yangfeng/yimg/raw/master/三灶编织原创挂坠.png',
              title: '三灶编织原创挂坠-送人好看纪念品',
              primaryImage: 'https://gitee.com/super_yangfeng/yimg/raw/master/三灶编织原创挂坠.png',
              quantity: 13,
              stockStatus: true,
              stockQuantity: 9,
              price: '29900',
              originPrice: '0',
              tagPrice: null,
              titlePrefixTags: [{
                text: '火爆'
              }],
              roomId: null,
              specInfo: [{
                  specTitle: '颜色',
                  specValue: '浅灰色',
                },
                {
                  specTitle: '尺码',
                  specValue: 'M',
                },
              ],
              joinCartTime: '2020-06-29T07:54:43.000+0000',
              available: 1,
              putOnSale: 1,
              etitle: null,
            }
          ],
          lastJoinTime: null,
        }, ],
        lastJoinTime: '2020-06-29T07:55:40.000+0000',
        postageFreePromotionVo: {
          title: null,
          promotionCode: null,
          promotionSubCode: null,
          promotionId: null,
          tagText: null,
          promotionStatus: null,
          tag: null,
          description: null,
          doorSillRemain: null,
          isNeedAddOnShop: 0,
        },
      }, ],
      invalidGoodItems: [{
        uid: '88888888205468',
        saasId: '88888888',
        storeId: '1000',
        spuId: '1',
        skuId: '135691631',
        isSelected: 1,
        thumb: 'https://cdn-we-retail.ym.tencent.com/tsr/goods/nz-08b.png',
        title: '纯色纯棉休闲圆领短袖T恤纯白亲肤厚柔软细腻面料纯白短袖套头T恤',
        primaryImage: 'https://cdn-we-retail.ym.tencent.com/tsr/goods/nz-08b.png',
        quantity: 8,
        stockStatus: true,
        stockQuantity: 177,
        price: '26900',
        originPrice: '31900',
        tagPrice: null,
        tagText: null,
        roomId: null,
        specInfo: [{
            specTitle: '颜色',
            specValue: '白色',
          },
          {
            specTitle: '尺码',
            specValue: 'S',
          },
        ],
        joinCartTime: '2020-04-28T04:03:59.000+0000',
        available: 1,
        putOnSale: 1,
        etitle: null,
      }, ],
      isAllSelected: false,
      selectedGoodsCount: 16,
      totalAmount: '179997',
      totalDiscountAmount: '110000',
    },
    code: 'Success',
    msg: null,
    requestId: mockReqId(),
    clientIp: mockIp(),
    rt: 269,
    success: true,
  };
  return resp;
}